package lab02.test13;
import java.util.Scanner;
public class Test13 {

  public static void main(String[] args) {
                            Scanner sc = new Scanner(System.in);
                Gymnastics c1 = new Gymnastics();

           School c2 = new School();

                                  System.out.println("请输入Gymnastics类学生成绩的数目");

        c1.n = sc.nextInt();



                    System.out.println("请输入" + c1.n+ "个成绩");

             for (c1.j = 1; c1.j <= c1.n; c1.j++) {

                            c1.a[c1.j] = sc.nextDouble();

                 }

               c1.average1();



                      System.out.println("请输入School类学生成绩数目");

               c2.n = sc.nextInt();



                     System.out.println("请输入" + c2.n + "个成绩");

              for (c2.j = 1; c2.j <=c2.n; c2.j++){

                     c2.a[c2.j] = sc.nextDouble();}

             c2.average2();

         }

}
